package com.common.constant;

/**
 * 抓取常量
 * 
 * @author Administrator
 * 
 */
public class SnatchConstant {
	
	
	/**
	 * 失败
	 */
	public static final int FAIL = 0;
	/**
	 * 成功
	 */
	public static final int SUCCESS = 1;
	
	/**
	 * 系统维护
	 */
	public static final int SYSTEM_MAINTENANCE = -1;
	
	/**
	 * 获取第三方对象失败
	 */
	public static final int INIT_FAIL_WRONG_NOT_GET_OBJECT = -2;
	
	/**
	 *  非常情况需要延迟时间 如来源网站已关闭，此时需要延迟 
	 */
	public static final long ASSISTA_SLEEP = 10*1000L;
	/*****************************************登录**********************************************************************/
	/**
	 * 登录时,用户名或密码错误
	 */
	public static final int LOGIN_FAIL_WRONG_USERNAME_OR_PASSWORD = 2;
	/**
	 * 登录时,验证码错误
	 */
	public static final int LOGIN_FAIL_WRONG_VC = 3;
	/**
	 * 登录时,频繁登录
	 */
	public static final int LOGIN_FAIL_TOO_OFTEN = 4;
	/**
	 * 登录时,系统错误
	 */
	public static final int LOGIN_FAIL_SYSTEM_WRONG = 5;
	/**
	 * 系统维护
	 */
	public static final int LOGIN_FAIL_SYSTEM_MAINTENANCE = 6;
	/**
	 * 变更密码
	 */
	public static final int LOGIN_FAIL_CHANGE_PASSWORD = 7;
	/**
	 * 帐号已关闭
	 */
	public static final int LOGIN_FAIL_ACCOUNT_LOCKED = 8;
	
	
	/**************************************************数据验证**********************************************************/
	/**
	 * 帐号被登出
	 */
	public static final int INSP_FAIL_ACCOUNT_OUTLOGIN = 9;
	
	/**
	 * 内页维护
	 */
	public static final int INSP_FAIL_THIRD_MAINTEN = 11;
	
	/**
	 * 数据为空
	 */
	public static final int INSP_FAIL_DTAT_NULL = 12;
	
	/**
	 * 采集时间不对或者小于上次的采集时间，应该是错误数据
	 */
	public static final int INSP_FAIL_SNATCH_TIME = 13;
	
	/**
	 * 采集时间不对或者小于上次的采集时间，应该是错误数据
	 */
	public static final int INSP_FAIL_SNATCH_PAGE = 14;
	

	/**
	 * 赛事两队的连接符
	 */
	public static String VS = " VS ";


	/**
	 * http连接超时时间
	 */
	public static int TIMEOUT = 6000;

	/**
	 * 设定需要重登录的时间(单位:小时)
	 */
	public static int NEED_RELOGIN = 2;

	/**
	 * 抓取时无需登录的标识
	 */
	public static String NOLOGIN = "nologin";

	public static String GMT = "GMT";

	public static String GMT_PLUS_8 = "GMT+8";

	public static String GMT_MINUS_4 = "GMT-4";

	public static final String UTF_8 = "UTF-8";
	
	public static final String MATCH_START_TIME = "yyyy-MM-dd HH:mm";

	/**
	 * 登录时,用户名或密码错误
	 */
	public static final String WRONG_USERNAME_OR_PASSWORD_TEXT = "您输入的帐号或密码不正确，请再尝试输入";

	/**
	 * 用户已过期或被登出
	 */
	public static final String ERROR_USER_LOGOUT = "帐号已过期或已于他处电脑登入使用!";

	/**
	 * 第三方格式错误
	 */
	public static final String ERROR_THIRD_FORMAT = "第三方数据格式错误. ";
	
	
	/**
	 * 第三方格式错误
	 */
	public static final String ERROR_THIRD_NODATA = "未采集到数据. ";
	
	/**
	 * 没有解析到数据
	 */
	public static final String ERROR_THIRD_NOSPORT= "目前没有赛事数据";
	
	/**
	 * 内页维护!
	 */
	public static final String ERROR_THIRD_MAINTEN= "内页维护";
	
	/**
	 * 获取第三方对象失败
	 */
	public static final String ERROR_NOT_OBJECT = "获取第三方对象失败";
	
	/**
	 * 系统维护!
	 */
	public static final String ERROR_SYSTEM_MAINTEN= "系统维护";

	/**
	 * 第三方服务器503错误
	 */
	public static final String ERROR_503 = "The service is unavailable.";

	public static final String REQ_ABORTED = "Request already aborted";

	public static final String CONN_CLOSED = "Connection has been shut down";

	/**
	 * xml version info
	 */
	public static final String XML_VERSION_INFO = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + "\n";

	/**
	 * 抓取随机数
	 */
	public static final int SNATCH_RANDOM = 500;

	public static final int DIFF_SEC = 5;// 每隔5次抓取一次全量数据

	public static final int DIFF_SEC_PB = 8;// 每隔8次抓取一次平博全量数据

	// 玩法信息
	
	
	/** 交易项玩法信息 */


	/**
	 * 标准盘
	 */
	public static final String STANDARD = "standard";
	public static final String STANDARD_TEXT = "标准盘";
	/**
	 * 让球盘
	 */
	public static final String ALLOW = "allow";
	public static final String ALLOW_TEXT = "让球盘";
	/**
	 * 大小盘
	 */
	public static final String BIGSMALL = "bigsmall";
	public static final String BIGSMALL_TEXT = "大小盘";
	
	/**
	 * 球队积分：大/小  主队
	 */
	public static final String HOSTBIGSMALL = "host_bigsmall";
	public static final String HOSTBIGSMALL_TEXT = "主队积分大小盘";
	
	/**
	 * 球队积分：大/小  客队
	 */
	public static final String AWAYBIGSMALL = "away_bigsmall";
	public static final String AWAYBIGSMALL_TEXT = "客队积分大小盘";
	/**
	 * 单双盘
	 */
	public static final String ONETWO = "onetwo";
	public static final String ONETWO_TEXT = "单双";
	/**
	 * 总进球
	 */
	public static final String TG = "tg";
	public static final String TG_TEXT = "总进球";
	/**
	 * 双重机会
	 */
	public static final String DC = "dc";
	public static final String DC_TEXT = "双重机会";
	/**
	 * 半场/全场
	 */
	public static final String HTFT = "ht/ft";
	public static final String HTFT_TEXT = "半场/全场";
	/**
	 * 全场波胆
	 */
	public static final String FTCS = "ftcs";
	public static final String FTCS_TEXT = "波胆";
	/**
	 * 冠军
	 */
	public static final String FIRST = "first";
	public static final String FIRST_TEXT = "冠军";

	// 玩法名称
	// 标准盘
	/**
	 * 标准盘-主胜
	 */
	public static final String STANDARD_HOME_WIN = "主胜";
	/**
	 * 标准盘-客胜
	 */
	public static final String STANDARD_AWAY_WIN = "客胜";
	/**
	 * 标准盘-和
	 */
	public static final String STANDARD_DRAW = "和";

	// 让球盘
	/**
	 * 让球方标识
	 */
	public static final String ALLOW_TYPE="-";
	/**
	 * 让球盘-主让
	 */
	public static final String ALLOW_HOME = "主";
	/**
	 * 让球盘-主被让
	 */
	public static final String ALLOW_HOME_BEEN = "主-";
	/**
	 * 让球盘-客让
	 */
	public static final String ALLOW_AWAY = "客";
	/**
	 * 让球盘-客被让
	 */
	public static final String ALLOW_AWAY_BEEN = "客-";

	// 大小盘
	/**
	 * 大小盘-大
	 */
	public static final String BIGSMALL_BIG = "大";
	/**
	 * 大小盘-小
	 */
	public static final String BIGSMALL_SMALL = "小";

	// 单双
	/**
	 * 单双-单
	 */
	public static final String ONETWO_ONE = "单";
	/**
	 * 单双-双
	 */
	public static final String ONETWO_TWO = "双";

	// 总进球
	/**
	 * 0-1
	 */
	public static final String TG_0_1 = "0-1";
	/**
	 * 2-3
	 */
	public static final String TG_2_3 = "2-3";
	/**
	 * 4-6
	 */
	public static final String TG_4_6 = "4-6";
	/**
	 * 7&over
	 */
	public static final String TG_7_OVER = "7-over";

	// 双重机会
	/**
	 * 1X
	 */
	public static final String DC_1X = "1X";
	/**
	 * 12
	 */
	public static final String DC_12 = "12";
	/**
	 * X2
	 */
	public static final String DC_X2 = "X2";

	// 半场/全场
	/**
	 * 主-主
	 */
	public static final String HTFT_HH = "主-主";
	/**
	 * 主-和
	 */
	public static final String HTFT_HD = "主-和";
	/**
	 * 主-客
	 */
	public static final String HTFT_HA = "主-客";
	/**
	 * 和-主
	 */
	public static final String HTFT_DH = "和-主";
	/**
	 * 和-和
	 */
	public static final String HTFT_DD = "和-和";
	/**
	 * 和-客
	 */
	public static final String HTFT_DA = "和-客";
	/**
	 * 客-主
	 */
	public static final String HTFT_AH = "客-主";
	/**
	 * 客-和
	 */
	public static final String HTFT_AD = "客-和";
	/**
	 * 客-客
	 */
	public static final String HTFT_AA = "客-客";

	// 波胆
	/**
	 * 1:0
	 */
	public static final String CS_10 = "1:0";
	/**
	 * 0:1
	 */
	public static final String CS_01 = "0:1";
	/**
	 * 2:0
	 */
	public static final String CS_20 = "2:0";
	/**
	 * 0:2
	 */
	public static final String CS_02 = "0:2";
	/**
	 * 2:1
	 */
	public static final String CS_21 = "2:1";
	/**
	 * 1:2
	 */
	public static final String CS_12 = "1:2";
	/**
	 * 3:0
	 */
	public static final String CS_30 = "3:0";
	/**
	 * 0:3
	 */
	public static final String CS_03 = "0:3";
	/**
	 * 3:1
	 */
	public static final String CS_31 = "3:1";
	/**
	 * 1:3
	 */
	public static final String CS_13 = "1:3";
	/**
	 * 3:2
	 */
	public static final String CS_32 = "3:2";
	/**
	 * 2:3
	 */
	public static final String CS_23 = "2:3";
	/**
	 * 4:0
	 */
	public static final String CS_40 = "4:0";
	/**
	 * 0:4
	 */
	public static final String CS_04 = "0:4";
	/**
	 * 4:1
	 */
	public static final String CS_41 = "4:1";
	/**
	 * 1:4
	 */
	public static final String CS_14 = "1:4";
	/**
	 * 4:2
	 */
	public static final String CS_42 = "4:2";
	/**
	 * 2:4
	 */
	public static final String CS_24 = "2:4";
	/**
	 * 4:3
	 */
	public static final String CS_43 = "4:3";
	/**
	 * 3:4
	 */
	public static final String CS_34 = "3:4";
	/**
	 * 0:0
	 */
	public static final String CS_00 = "0:0";
	/**
	 * 1:1
	 */
	public static final String CS_11 = "1:1";
	/**
	 * 2:2
	 */
	public static final String CS_22 = "2:2";
	/**
	 * 3:3
	 */
	public static final String CS_33 = "3:3";
	/**
	 * 4:4
	 */
	public static final String CS_44 = "4:4";
	/**
	 * other
	 */
	public static final String CS_OTHER = "其它";
	/**
	 * 0:5UP
	 */
	public static final String CS_05_UP = "0:5UP";
	/**
	 * 5:0UP
	 */
	public static final String CS_50_UP = "5:0UP";

	/**
	 * 全场
	 */
	public static final int GAMETIME_FULL = 1;
	/**
	 * 上半场
	 */
	public static final int GAMETIME_HALF = 2;

	/**
	 * 默认的时间格式。
	 */
	public static final String DATE_FORMATER = "yyyy-MM-dd HH:mm:ss";
	

	/**
	 * 全量抓取
	 */
	public static final int SELALL = 1;
	/**
	 * 增量抓取
	 */
	public static final int SELUP = 2;
	
	
	public static final String ISNORMAL = "1";
	
	public static final String NOTNORMAL = "0"; 


	/** 第三方信息 */
	public static final String THIRD_SYSTEM_HG_VALUE = "HG";
	public static final String THIRD_SYSTEM_HG_TEXT = "皇冠";

	public static final String THIRD_SYSTEM_SB_VALUE = "SB";
	public static final String THIRD_SYSTEM_SB_TEXT = "沙巴";

	public static final String THIRD_SYSTEM_LJ_VALUE = "LJ";
	public static final String THIRD_SYSTEM_LJ_TEXT = "利记";
	
	public static final String THIRD_SYSTEM_PB_VALUE = "pb";
	public static final String THIRD_SYSTEM_PB_TEXT = "平博";
	
	public static final String THIRD_SYSTEM_FB_VALUE = "fb";
	public static final String THIRD_SYSTEM_FB_TEXT = "富博";
	
	public static final String SOCCER_GQ = "足球.滚球";

	public static final String SOCCER_SP = "足球.单式";
	
	public static final String SOCCER_EARLY = "足球.早餐";
	
	public static final String SOCCER_RESULT = "足球.赛果";

	public static final String SOCCER_SP_ONETWO = "足球.单式.单双";

	public static final String SOCCER_SP_ALLOW_BIGSMALL_STANDARD = "足球.单式.让球盘/大小球/标准盘";
	
	public static final String SOCCER_SP_TG = "足球.单式.总进球";
	
	public static final String SOCCER_SP_DC = "足球.单式.双重机会";

	public static final String SOCCER_SP_HT_FT = "足球.单式.半场/全场";

	public static final String SOCCER_SP_FTCS = "足球.单式.全场波胆";

	public static final String SOCCER_SP_FHCS = "足球.单式.上半场波胆";
/*
	public static final String SNATCH_ITEM_STANDARD = "standard";//抓取项 标准 让球 标准盘等
	
	public static final String SNATCH_ITEM_RESULT = "result";// 抓取项(足球.赛果)
	
	
	public static final String SNATCH_ITEM_ONETWO = "onetwo";// 抓取项(足球.单式.单双)
	
	public static final String SNATCH_ITEM_TG = "tg";// 抓取项(足球.单式.总进球)
	
	public static final String SNATCH_ITEM_DC = "dc";// 抓取项(足球.单式.双重机会)

	public static final String SNATCH_ITEM_HT_FT = "ht/ft";// 抓取项(足球.单式.半场/全场)

	public static final String SNATCH_ITEM_FTCS = "ftcs";// 抓取项(足球.单式.全场波胆)

	public static final String SNATCH_ITEM_FHCS = "fhcs";// 抓取项(足球.单式.上半场波胆)
	
	public static final String SNATCH_ITEM_EARLY = "early";// 抓取项(足球.早餐)
*/
	
	
	
	public static final String SNATCH_TYPE_GQ = "R";// 抓取项(足球.滚球)
	
	public static final String SNATCH_TYPE_GQ_TEXT = "滚球";// 抓取项(足球.滚球)

	public static final String SNATCH_TYPE_DS = "S";// 抓取项(足球.单式)
	
	public static final String SNATCH_TYPE_DS_TEXT = "单式";// 抓取项(足球.单式)
	
	public static final String SNATCH_TYPE_ZC = "E";// 抓取项(足球.早餐)
	
	public static final String SNATCH_TYPE_ZC_TEXT = "早餐";// 抓取项(足球.早餐)
	//================皇冠采集类型后面追加=================
	
	
	public static final String HG_PARENT_SNATCH_END = "parent.gameCount=";
	
	public static final String HG_SNATCH_ITEM_BROWSE = "body_browse";//主页面
	
	public static final String HG_SNATCH_ITEM_STANDARD = "standard";	//抓取项 标准 让球 标准盘等
	
	public static final String HG_SNATCH_ITEM_STANDARD_TEXT = "独赢 ＆ 让球 ＆ 大小 ＆单 /双";	//抓取项 标准 让球 标准盘等
	
	public static final String HG_SNATCH_ITEM_FTCS = "ftcs";//波胆
	
	public static final String HG_SNATCH_ITEM_FTCS_TEXT = "全场波胆";	//抓取项 标准 让球 标准盘等
	
	public static final String HG_SNATCH_ITEM_HF_FTCS = "hf_ftcs";//波胆
	
	public static final String HG_SNATCH_ITEM_HF_FTCS_TEXT = "半场波胆";	//抓取项 标准 让球 标准盘等
	
	public static final String HG_SNATCH_ITEM_HT_FT = "ht/ft";//半场/全场
	
	public static final String HG_SNATCH_ITEM_HT_FT_TEXT = "半场 /全场";	//抓取项 标准 让球 标准盘等
	
	public static final String HG_SNATCH_ITEM_TG = "tg";//总入球
	
	public static final String HG_SNATCH_ITEM_TG_TEXT = "总入球";	//抓取项 标准 让球 标准盘等
	
	public static final String HG_SNATCH_ITEM_PASS = "pass";//过关
	
	public static final String HG_SNATCH_ITEM_PASS_TEXT = "综合过关";	//抓取项 标准 让球 标准盘等
	
	
	public static final String HG_SNATCH_ITEM_FIRST = "first";//冠军
	
	public static final String HG_SNATCH_ITEM_FIRST_TEXT = "冠军";	//抓取项 标准 让球 标准盘等
	
	
	public static final String HG_SNATCH_ITEM_RESULT = "result";//赛果
	
	public static final String HG_SNATCH_ITEM_RESULT_TEXT = "赛果";	//抓取项 标准 让球 标准盘等
	
	
	public static final String HG_SNATCH_ITEM_FIRST_LOAD = "first_load";//冠军
	
	/*运动项目*/
	public static final String FOOTBALL = "football";
	
	public static final String BASKETBALL = "basketball";
	
	public static final String TENNIS = "tennis";
	
	public static final String VOLLEYBALL = "volleyball";//排球
	
	public static final String BASEBALL = "baseball";//棒球
	
	public static final String OTHER = "other";//其它
	
	
	/******************************************请求key************************************************/
	
	public static final String VERSIONSKEY = "vk";
	
	public static final String TACTKEY = "tk";
	
	public static final String SNATCHDATAKEY = "dk";
	
	
	
	
}
